from lib_not_dr import loggers

logger = loggers.config.get_logger("main")
# error_stream = loggers.outstream.FileCacheOutputStream(file_name="error.log", level=loggers.LogLevel.warn)
error_stream = loggers.outstream.FileCacheOutputStream(file_name="error.log", level=loggers.LogLevel.error)

logger.add_output(error_stream)
# logger.error('会写入文件内')
# logger.info('只出现在控制台')
